package com.mydesignpattern.beijing.observer;

public class Person {
    private String name;

    public Person (){}

    public Person(String name){
        this.name = name;
    }

    /**
     * 接收消息
     */
    public void receiveMessage(String msg){
        System.out.println(name+"接收到消息："+msg);
    }



}
